﻿using AppServices.Test;
using AppServices.User;
using Infrastructure.Tools;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace WorldSystem.Api.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        private readonly TodayTestTool _todayTestService;
        private readonly UserInfoAppService _userInfoService;
        private readonly TestAppService _testAppService;

        public TestController(TodayTestTool todayTestService, UserInfoAppService userInfoService,TestAppService testAppService)
        {
            this._todayTestService = todayTestService;
            _userInfoService = userInfoService;
            _testAppService = testAppService;
        }
        [HttpGet]
        public string Today()
        {
           return _todayTestService.ShowTime();
        }

        [HttpGet("[action]")]
        public string Test()
        {
            return _testAppService.Test();
        }
    }
}
